package com.clhbolg.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】业务对象 t_user_auth
 *
 * @author cailinhu
 * @date 2023-02-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class UserAuthBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户信息id
     */
    @NotNull(message = "用户信息id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userInfoId;

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 登录类型
     */
    @NotNull(message = "登录类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer loginType;

    /**
     * 用户登录ip
     */
    @NotBlank(message = "用户登录ip不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ipAddress;

    /**
     * ip来源
     */
    @NotBlank(message = "ip来源不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ipSource;

    /**
     * 上次登录时间
     */
    @NotNull(message = "上次登录时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date lastLoginTime;


}
